let arr = ['../img/f8.jpg', '../img/f9.jpg', '../img/f10.jpg', '../img/f11.jpg']
let img = document.querySelector('img')
let post = document.querySelector('.post')
let input = document.querySelector('input')
let plateWrap = document.querySelector('.plate-wrap')
let option = document.querySelectorAll('option')
let textarea = document.querySelector('textarea')
post.onclick = function () {
    plateWrap.style.display = 'block'
}
let postEnd = document.querySelector('.post-end')
postEnd.onclick = function () {
    plateWrap.style.display = 'none'
    let index = Math.floor(Math.random() * arr.length)
    img.src = arr[index]
    img.style.width = '80px'
    let div = document.createElement('div')
    let span = document.createElement('span')
    input.value = span
    img.after(span)
    console.log(div)
}